<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>007.css中的inset</title>

    <style>
      .container {
        position: relative;
        width: 100px;
        height: 100px;
        background-color: red;
      }

      .container::after {
        position: absolute;
        background-color: yellow;
        content: "";

        /* 相当于 top: 10px; right: 10px; bottom: 10px; left: 10px; */
        inset: 10px;
      }
    </style>
  </head>
  <body>
    <div class="container"></div>
  </body>
</html>
